import Cookies from "js-cookie";
const Token = "token";
// 存
export function setToken(token) {
  Cookies.set(Token, token);
}
// 取
export function getToken() {
  return Cookies.get(Token) || undefined;
}
// 移除
export function removeToken() {
  Cookies.remove(Token);
}

//地址存储
// const Receiver = "receiver";
//存
export function setReceiver(receiver) {
  Cookies.set("receiver", receiver);
}
export function setRegions(receiver) {
  Cookies.set("regions", receiver);
}
export function setAddress(receiver) {
  Cookies.set("address", receiver);
}
